package org.usp.poli.bipt.client;

import java.util.List;

import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;
import org.usp.poli.bipt.client.metadata.*;
import org.usp.poli.bipt.server.bd.MetaDataBD;

/**
 * The client side stub for the RPC service.
 */
@RemoteServiceRelativePath("greet")
public interface GreetingService extends RemoteService {
	String greetServer(String name) throws IllegalArgumentException;
	String setDarwinCore(String name) throws IllegalArgumentException;
	Boolean login(String userLogin, String userSenha) throws IllegalArgumentException;
	String setBasicMetaData(MetaData data) throws IllegalArgumentException;
	String setGeographicCoverage(GeographicCoverage data, String key) throws IllegalArgumentException;
	String setBasicMetadataTypes(BasicMetadataTypes data, String key) throws IllegalArgumentException;
	String setGeneralKeywords(GeneralKeywords data, String key) throws IllegalArgumentException;
	String setIPRights(IPRights data, String key) throws IllegalArgumentException;
	String setMethods(Methods data, String key) throws IllegalArgumentException;
	String setResearchProject(ResearchProject data, String key) throws IllegalArgumentException;
	String setResourceOriginator(ResourceOriginator data, String key) throws IllegalArgumentException;
	String setTaxonomicCoverage(TaxonomicCoverage data, String key) throws IllegalArgumentException;
	String setTemporalCoverage(TemporalCoverage data, String key) throws IllegalArgumentException;
	String setLowestCommonTax(LowestCommonTax data, String key) throws IllegalArgumentException;
	List<MetaData> getCollections() throws IllegalArgumentException;
	
}
